package TDALista;

public class Nodo<E> implements Position<E> {

	private E element;
	private Nodo<E> next,prev;
	
	public Nodo(E e){
		element=e;
		next=prev=null;
	}
	
	public Nodo(E e,Nodo<E> n,Nodo<E> b ){
		element =e;
		next=n;
		prev=b;
	}
	
	public E element(){
		return element;
	}
	
	public void setElement(E element){
		this.element=element;
		
	}
	
	public  Nodo<E> getNext(){
		return next;
	}
	
	public Nodo<E> getPrev (){
		return prev;
	}
	
	public void setNext (Nodo<E> next){
		this.next=next;
	}
	
	public void setPrev(Nodo<E> prev){
		this.prev=prev;
	}
}
